package com.wc.alorithm_luogu._简单题.P1035;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2023/4/20 11:21
 * @description https://www.luogu.com.cn/problem/P1035
 * 级数求和
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int k = sc.nextInt();
        double sum = 0;
        int ans = 0;

        while (sum <=k) {
            ans++;
            sum += 1.0 / ans;
        }

        System.out.println(ans);
    }
}
